﻿using System.Text;
using System.Configuration;

namespace FCMS.Configuration.Route
{
    public class RouteSection : ConfigurationSection
    {
        private static RouteSection s_instance;
        private static bool s_instanceLoaded;

        public static RouteSection Instance
        {
            get
            {
                if (!s_instanceLoaded)
                {
                    lock (typeof(RouteSection))
                    {
                        if (!s_instanceLoaded)
                        {
                            s_instance = (RouteSection)ConfigurationManager.GetSection("RouteSection");
                            s_instanceLoaded = true;
                        }
                    }
                }

                return s_instance;
            }
        }

        //[ConfigurationProperty("ext", IsRequired = true)]
        //public string Ext
        //{
        //    get { return this["ext"].ToString(); }
        //    set { this["ext"] = value; }
        //}

        //[ConfigurationProperty("ignore", IsRequired = false)]
        //public IgnoreCollection Ignore
        //{
        //    get { return (IgnoreCollection)(this["ignore"]); }
        //    set { this["ignore"] = value; }
        //}
    }
}
